package com.zzxx.wechat.dao;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzxx.wechat.entity.ArcteryxSwitch;
import com.zzxx.wechat.mapper.ArcteryxSwitchMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


@Service
public class ArcteryxSwitchDao extends ServiceImpl<ArcteryxSwitchMapper, ArcteryxSwitch> implements IService<ArcteryxSwitch> {

    public ArcteryxSwitch queryByConfigName(String configName) {
        return lambdaQuery()
                .eq(ArcteryxSwitch::getConfigName, configName)
                .one();
    }
}
